/**
 *
 * @authors Your Name (you@example.org)
 * @date    2018-10-11 23:02:30
 * @version $Id$
 */

import Vue from 'vue'
import Vuex from 'vuex'
import user from './module/user'
import good from './module/good'
import order from './module/order'
Vue.use(Vuex)
const baseUrl = '/shopping/h5/'

const store = new Vuex.Store({
	modules:{
    user,
    good,
    order,
  },
  state:{
    getOpenId: baseUrl+'getOpenId',//获取openId
    getGoodInfo:baseUrl+'getGoodInfo',//获取商品详情
    orderPay:baseUrl+'orderPay',//获取商品详情
    orderList:baseUrl+'orderList',//获取订单列表
    orderSubmit:baseUrl+'orderSubmit',//修改订单状态

  }
	//getters
})

export default store
